#pragma once
#include "Movie.h"
class ScienceFiction : public Movie
{
private:
	bool basedOnABook;
public:

	ScienceFiction()
	{
		this->basedOnABook = false;
	}

	ScienceFiction(bool basedOnABook, string name, int year)
		:Movie(name, year)
	{
		this->basedOnABook = basedOnABook;
	}

	void print()
	{
		Movie::print();
		cout << "Based on a book: " << this->basedOnABook << endl;
	}

	bool GetBasedOnABook() { return this->basedOnABook; }
	void SetBaseOnABook(bool b) { this->basedOnABook = b; }

	~ScienceFiction()
	{
	}
};

